package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.iwhalecloud.bss.kite.common.constant.KeyConsts;
import com.iwhalecloud.bss.kite.common.util.KiteStringUtils;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.AttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;

public class PayCycleAttrHandler  extends AbstractAttrHandler<KiteInst, AttrData> {

    @Override
    public void after(KiteAttr attr, KiteInst inst, AttrData data) {
        if(KiteStringUtils.equalsAny(inst.getActionType().name(),KeyConsts.ACTION_TYPE_M,KeyConsts.ACTION_TYPE_K)){
            //支付周期
            KiteAttr serviceBegin = inst.getAttr("200003796");
            serviceBegin.setIsEdit(KeyConsts.IFTRUE_F);
        }
    }
}
